package com.skivingcloud.admin.sys.entity;

import java.io.Serializable;
import java.util.List;

public class AppRouteRecordRaw implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private String id;
	/**
	 * 类型 0：目录 1：菜单 2：按钮
	 */
	private Integer type;
	/**
	 * 设定路由的名字，一定要填写不然使用<keep-alive>时会出现各种问题
	 */
	private String name;

	private MenuMeta meta;
	/**
	 * 组件路径
	 */
	private String component;
	/**
	 * 路由path
	 */
	private String path;
	/**
	 * 当设置 noredirect 的时候该路由在面包屑导航中不可被点击
	 */
	private String redirect;
	/**
	 * 子路由
	 */
	private List<AppRouteRecordRaw> children;
	
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	
	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the meta
	 */
	public MenuMeta getMeta() {
		return meta;
	}
	/**
	 * @param meta the meta to set
	 */
	public void setMeta(MenuMeta meta) {
		this.meta = meta;
	}
	/**
	 * @return the component
	 */
	public String getComponent() {
		return component;
	}
	/**
	 * @param component the component to set
	 */
	public void setComponent(String component) {
		this.component = component;
	}
	/**
	 * @return the path
	 */
	public String getPath() {
		return path;
	}
	/**
	 * @param path the path to set
	 */
	public void setPath(String path) {
		this.path = path;
	}
	/**
	 * @return the redirect
	 */
	public String getRedirect() {
		return redirect;
	}
	/**
	 * @param redirect the redirect to set
	 */
	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}
	/**
	 * @return the children
	 */
	public List<AppRouteRecordRaw> getChildren() {
		return children;
	}
	/**
	 * @param children the children to set
	 */
	public void setChildren(List<AppRouteRecordRaw> children) {
		this.children = children;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	
	@Override
	public String toString() {
		return "AppRouteRecordRaw [" + (id != null ? "id=" + id + ", " : "")
				+ (type != null ? "type=" + type + ", " : "")
				+ (children != null ? "children=" + children + ", " : "")
				+ (component != null ? "component=" + component + ", " : "")
				+ (meta != null ? "meta=" + meta + ", " : "") + (name != null ? "name=" + name + ", " : "")
				+ (path != null ? "path=" + path + ", " : "") + (redirect != null ? "redirect=" + redirect : "") + "]";
	}
    
}